const webpack = require('webpack');

const path = require('path')
module.exports = {

    devServer: {
        // 反向代理端口地址及端口为 http://localhost:8080
        proxy: 'http://localhost:8091',
        port: 8080,
        compress:false,
    },
    configureWebpack: {
        plugins: [
            new webpack.ProvidePlugin({
                $: "jquery",
                jQuery: "jquery",
                "windows.jQuery": "jquery"
            })
        ],
        optimization: {
            runtimeChunk: {
                name: 'manifest'
            },
            splitChunks: {
                maxInitialRequests: 10,
                cacheGroups: {
                    common: {
                        name: 'common',
                        //chunks: 'all'
                    }
                }
            }
        },
    },
}




